<!-- User Edit -->
<head>
  <meta name="layout" content="app" />
  <title>Edit User</title>
</head>
<body>
  <div class="body">
    <h1>Edit User</h1>
    <g:render template="/common/flashMessage" />
    <g:render template="/common/beanError" model="[bean:user]" />
    <g:form>
      <input type="hidden" name="id" value="${user.id}" />
      <input type="hidden" name="version" value="${user.version}" />
      <div class="dialog">
<table>
  <tbody>
        <g:render template="editUser" />
        <g:render template="/person/editPerson" />
  </tbody>
</table>
      </div>
      <tdcmw:backButton />
      <tdcmw:submitFormButton action="update" label="Update" />
%{--
TODO: Review the deletion of users before enabling it in the system.
      <g:ifAnyGranted role="ROLE_ADMIN">
        <tdcmw:submitFormButton action="delete" label="Delete" params="[id:user.id]" confirm="Are you sure you want to delete ${user}?" />
      </g:ifAnyGranted> --}%
    </g:form>
  </div>
</body>
